package cn.sonui.onlinechat.bean;

import javax.websocket.Session;
import java.util.List;

public class UserInfo {
    //用户名
    private String name;
    //用户id
    private Integer id;
    //用户对话标识
    private Session session;
    //用户头衔
    private String title;
    //用户密码
    private String password;
    //用户权限
    private Integer permission;
    //所在房间列表
    private List<Integer> rooms;
    public UserInfo(){}
    public UserInfo(String name, Integer id, String title, String password, Integer permission, List<Integer> room){
        this.name = name;
        this.id = id;
        this.title = title;
        this.password = password;
        this.permission = permission;
        this.rooms = room;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public String getHeader() {
        return title;
    }

    public void setHeader(String header) {
        this.title = header;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Integer> getRooms() {
        return rooms;
    }

    public void setRooms(List<Integer> rooms) {
        this.rooms = rooms;
    }

    public Integer getPermission() {
        return permission;
    }

    public void setPermission(Integer permission) {
        this.permission = permission;
    }
}
